/* 楚地灵韵 - Main Stylesheet */
:root {
    --primary-color: #8E24AA;
    --primary-light: #C158DC;
    --primary-dark: #5C007A;
    --secondary-color: #FF9800;
    --secondary-light: #FFCC80;
    --text-color: #333333;
    --text-light: #757575;
    --background-color: #F5F5F5;
    --surface-color: #FFFFFF;
    --error-color: #B00020;
    --success-color: #00C853;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Components */
.app-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding-bottom: 70px; /* Space for bottom nav */
}

.app-header {
    background-color: #9C27B0;
    color: white;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.header-icons {
    display: flex;
    gap: 12px;
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-content {
    padding: 15px;
    padding-bottom: 70px; /* Space for bottom navigation */
}

/* Search Bar */
.search-container {
    margin-bottom: 15px;
}

.search-bar {
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar i {
    color: #999;
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: #333;
    font-size: 14px;
}

/* Carousel */
.carousel-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.carousel-caption h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.indicator.active {
    background-color: white;
}

/* Feature Modules */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #9C27B0;
}

.feature-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Recommendation Sections */
.section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.module-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.view-all {
    font-size: 12px;
    color: #9C27B0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Spot Cards */
.scroll-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 5px;
}

.scroll-cards::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.culture-card {
    min-width: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.card-image {
    position: relative;
}

.card-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.card-badge.hot {
    background-color: #FF5722;
    color: white;
}

.card-info {
    padding: 10px;
}

.card-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.ar-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background-color: #e3f2fd;
    border-radius: 12px;
    font-size: 11px;
    color: #9C27B0;
}

/* Activity Cards */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.activity-time {
    background-color: #9C27B0;
    color: white;
    padding: 10px;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.date {
    font-size: 12px;
}

.day {
    font-size: 18px;
    font-weight: bold;
}

.activity-details {
    padding: 10px;
    flex: 1;
}

.activity-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.activity-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.activity-description {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

.activity-tag {
    display: flex;
    gap: 5px;
}

.tag {
    padding: 2px 8px;
    background-color: #f1f1f1;
    border-radius: 10px;
    font-size: 11px;
    color: #666;
}

/* Spirit Collection */
.spirit-collection {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.spirit-collection::-webkit-scrollbar {
    display: none;
}

.spirit-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.spirit-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #9C27B0;
}

.spirit-name {
    font-size: 12px;
    color: #333;
}

.spirit-avatar.locked img {
    border-color: #ccc;
    opacity: 0.5;
    filter: grayscale(100%);
}

.spirit-avatar.locked .spirit-name {
    color: #999;
}

/* Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 90;
}

.nav-item {
    flex: 1;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 12px;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: #9C27B0;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background-color: #9C27B0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3);
    z-index: 80;
}

/* AR Guide Page Styles */
.map-container {
    position: relative;
    height: 200px;
    background-color: #e3f2fd;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-info {
    display: flex;
    flex-direction: column;
}

.location-name {
    font-weight: bold;
    font-size: 14px;
}

.location-address {
    font-size: 12px;
    color: #666;
}

.ar-button {
    background-color: #9C27B0;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.spot-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spot-image {
    height: 150px;
}

.spot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-info {
    padding: 12px;
}

.spot-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.spot-name {
    font-size: 16px;
    font-weight: bold;
}

.spot-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FF9800;
    font-size: 14px;
}

.spot-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.spot-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.spot-distance {
    font-size: 12px;
    color: #9C27B0;
}

.spot-tags {
    display: flex;
    gap: 8px;
}

.spot-tag {
    padding: 3px 8px;
    background-color: #f1f1f1;
    border-radius: 10px;
    font-size: 11px;
    color: #666;
}

.route-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.route-image {
    width: 100px;
    min-width: 100px;
}

.route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-info {
    padding: 12px;
    flex: 1;
}

.route-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.route-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.route-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.route-description {
    font-size: 12px;
    color: #666;
}

.spirit-guide {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spirit-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #9C27B0;
}

.spirit-info {
    flex: 1;
}

.spirit-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.spirit-description {
    font-size: 12px;
    color: #666;
}

.spirit-action {
    color: #9C27B0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .feature-label {
        font-size: 11px;
    }
} 